package com.bys.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bys.generator.base.BaseModel;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
* PackageName:  com.bys.system.model
* ClassName:    SysUserModel
* Description:  用户表实体类
* Author:       bys
* Date:         2023-03-31
**/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "sys_user", autoResultMap = true)
@Schema(description = "用户表实体类")
public class SysUserModel extends BaseModel {

    private static final long serialVersionUID = 1L;

    @Schema(description = "用户名")
    @TableField("username")
    private String username;

    @Schema(description = "密码")
    @TableField("`password`")
    private String password;

    @Schema(description = "姓名")
    @TableField("`name`")
    private String name;

    @Schema(description = "手机")
    @TableField("phone")
    private String phone;

    @Schema(description = "头像地址")
    @TableField("head_url")
    private String headUrl;

    @Schema(description = "部门id")
    @TableField("dept_id")
    private Long deptId;

    @Schema(description = "岗位id")
    @TableField("post_id")
    private Long postId;

    @Schema(description = "微信openId")
    @TableField("open_id")
    private String openId;

    @Schema(description = "描述")
    @TableField("description")
    private String description;

    @Schema(description = "状态（1：正常 0：停用）")
    @TableField("`status`")
    private Integer status;
    @Schema(description = "邮箱号")
    @TableField("email")
    private String email;


}